.nodeWrapBox {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.nodeWrapBox.condition {
    padding: 30px 50px 0;
}

.nodeWrapBox.approver::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    border-style: solid;
    border-width: 8px 6px 4px;
    border-color: #cacaca transparent transparent;
    background: #f8f8f8;
}

.nodeWrapBox.error.condition .errorTip {
    right: 0;
}

.nodeWrapBox.error .errorTip {
    right: -40px;
}

.nodeWrapBox.error .flowPathCard {
    border: 1px solid #f00;
}

.nodeWrapBox.error .flowPathCard:hover {
    border-width: 0;
}

.nodeWrapBox .errorTip {
    position: absolute;
    right: 0;
    top: 15%;
    width: 30px;
    height: 30px;
    color: #f00;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid;
    line-height: 30px;
    transition: right 0.5s;
    font-size: 18px;
    font-weight: 600;
}

.nodeWrapBox.condition .errorTip {
    right: 60px;
}

.endNode {
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #bfbfbf;
}

.endNode::before {
    content: '';
    width: 10px;
    height: 10px;
    margin: auto;
    border: none;
    margin-bottom: 5px;
    border-radius: 50%;
    background: #dbdcdc;
}

.flowPathCard {
    position: relative;
    width: 220px;
    min-height: 82px;
    font-size: 12px;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
    background: #fff;
    z-index: 10;

    .defalut {
        position: absolute;
        left: -10px;
        z-index: 100;
        top: -10px;
        background-color: #ff9431;
        display: block;
        height: 20px;
        width: 20px;
        transform: rotate(45deg);
    }
}

.flowPathCard:hover {
    box-shadow: 0 0 0 2px #ff9431, 0 0 5px 4px rgba(0, 0, 0, 0.2);
}

.flowPathCard:not(.condition) .header {
    background-color: #ff9431;
}

.flowPathCard.startNode .header {
    background-color: #98a6c7;
}

.flowPathCard.startNode:hover {
    box-shadow: 0 0 0 2px #98a6c7, 0 0 5px 4px rgba(0, 0, 0, 0.2);
}

.flowPathCard.copy .header {
    background-color: #389fff;
}

.flowPathCard.copy:hover {
    box-shadow: 0 0 0 2px #389fff, 0 0 5px 4px rgba(0, 0, 0, 0.2);
}

.flowPathCard .header {
    padding-left: 12px;
    padding-right: 30px;
    width: 100%;
    height: 24px;
    line-height: 24px;
    color: #fff;
    position: relative;
    box-sizing: border-box;
}

.flowPathCard .header .titleBox {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowPathCard .header .titleInput {
    position: absolute;
    left: 0;
    border: none;
    background: inherit;
    color: inherit;
    opacity: 0;
}

.flowPathCard .header .titleInput:focus {
    font-size: 12px;
    padding: 2px;
    padding-left: 4px;
    width: 97%;
    margin-left: 1px;
    height: 18px;
    box-sizing: border-box;
    box-shadow: none;
    background-color: white;
    border-color: transparent;
    color: #000;
    opacity: 1;
    outline: none;
}

.flowPathCard .header .titleText {
    line-height: 24px;
    //margin-top: -2px;
    display: inline-block;
    vertical-align: top;
}

.flowPathCard .header > .actions {
    position: absolute;
    right: 0;
    top: 0;
    visibility: hidden;
}

.flowPathCard:not(.startNode):hover .actions {
    visibility: visible;
}

.flowPathCard:not(.startNode):hover .titleText {
    border-bottom: 1px dashed currentColor;
}

.flowPathCard .body {
    position: relative;
    padding: 12px;
    padding-right: 30px;
    box-sizing: border-box;
}

.flowPathCard .body .text {
    color: #434343;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.flowPathCard .iconWrapper {
    position: absolute;
    top: 0;
    height: 100%;
    width: 14px;
    box-sizing: border-box;
}

.flowPathCard .iconWrapper.left {
    left: 0;
    top: 10px;
}

.flowPathCard .iconWrapper.right {
    right: 7px;
    top: 10px;
}

.flowPathCard .rightArrow,
.flowPathCard .leftArrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.flowPathCard.condition {
    padding: 8px 14px;
}

.flowPathCard.condition .header {
    height: 18px;
    line-height: 18px;
    color: inherit;
    padding: 0;
}

.flowPathCard.condition .header .titleText {
    color: #15bc83;
}

.flowPathCard.condition .body {
    padding: 8px;
    margin-top: 10px;
    background-color: rgb(250, 250, 250);
    border-radius: 2px;
}

.flowPathCard.condition .iconWrapper:hover {
    background-color: #f1f1f1;
}

.flowPathCard.condition .rightArrow,
.flowPathCard.condition .leftArrow {
    visibility: hidden;
}

.flowPathCard.condition:hover .rightArrow,
.flowPathCard.condition:hover .leftArrow {
    visibility: visible;
}

.flowPathCard.condition:hover .priority {
    display: none;
}

.colBox:first-of-type > .nodeWrap .left {
    display: none;
}

.colBox:last-of-type > .nodeWrap .right {
    display: none;
}

.addNodeBtnBox {
    width: 220px;
    height: 100px;
    position: relative;
    padding-top: 30px;
    margin: auto;
}

.addNodeBtnBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    //z-index: -1;
    margin: auto;
    width: 2px;
    height: 100%;
    background-color: #cacaca;
}

.btn {
    width: 32px;
    height: 32px;
    border-radius: 15px;
    cursor: pointer;
    outline: none;
    background-color: #3296fa;
    border-color: transparent;
    transition: transform 0.5s;

    &:hover {
        transform: scale(1.2);
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
    }

    .icon {
        color: #fff;
    }
}

.addNodeBtn {
    display: flex;
    justify-content: center;
}

.branchWrap .branchBoxWrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.branchWrap .branchBox {
    align-items: stretch;
    border-bottom: 2px solid #cacaca;
    border-top: 2px solid #cacaca;
    box-sizing: border-box;
    //background: #f8f8f8;
}

.branchWrap .branchBox > .colBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #f8f8f8
        url()
        repeat -10px 2px;
    background-size: 21px;
}

.branchWrap .branchBox > .colBox:first-of-type::before,
.branchWrap .branchBox > .colBox:first-of-type::after {
    content: '';
    position: absolute;
    left: 0;
    height: 3px;
    width: calc(50% - 1px);
    background: #f8f8f8;
}

.branchWrap .branchBox > .colBox:first-of-type::before {
    top: -2px;
}

.branchWrap .branchBox > .colBox:first-of-type::after {
    bottom: -2px;
}

.branchWrap .branchBox > .colBox:last-of-type::before,
.branchWrap .branchBox > .colBox:last-of-type::after {
    content: '';
    position: absolute;
    right: 0;
    height: 3px;
    width: calc(50% - 1px);
    background: #f8f8f8;
}

.branchWrap .branchBox > .colBox:last-of-type::before {
    top: -2px;
}

.branchWrap .branchBox > .colBox:last-of-type::after {
    bottom: -2px;
}

.branchWrap .branchBox > .colBox .centerLine {
    height: 100%;
    width: 2px;
    background: #cacaca;
    position: absolute;
}

.branchWrap .branchBox > .btn {
    z-index: 99;
    cursor: pointer;
    position: absolute;
    top: 0;
    outline: none;
    transform: translateY(-50%);
    border: 3px solid rgba(255, 158, 0, 0.3);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    height: 30px;
    font-size: 12px;
    width: auto;
    color: #ff9e00;
}

.branchWrap .branchBox > .btn:hover {
    color: #ff9e00;
    border: 3px solid #ff9e00;
    //transform: scale(1.1) translateY(-50%);
}

.conditionBox {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.conditionBox .conditionIcon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    box-sizing: border-box;
    font-size: 12px;
    cursor: pointer;
    margin: 0 auto 4px;

    &.btnApproval {
        background-color: rgb(255, 158, 0);
    }

    &.btnCopy {
        background-color: rgb(0, 173, 255);
    }

    &.btnAppend {
        background-color: rgb(65, 193, 74);
    }
}

.conditionBox .conditionIcon i {
    font-size: 28px;
    vertical-align: middle;
    color: white;
}

.conditionBox .conditionIcon:hover {
    box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.1);
}

.conditionBox .conditionIcon:hover > i {
    color: #fff;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.justifyCenter {
    justify-content: center;
}

.icon {
    vertical-align: middle;
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.icon:hover {
    color: #3296fa;
}

.priority {
    position: absolute;
    right: 0;
    font-size: 12px;
}

.reverseBtn {
    background-color: white !important;
    color: #ff943e !important;
    border: 3px solid rgba(255, 158, 0, 0.3);
}
.reverseBtn:hover {
    border: 3px solid #ff9e00;
}
